{% extends "base.html" %}
{% load i18n %}

{% block content %}

<TABLE width="100%">
<tr>    
    <td>
      {% if languages %}
      <form action="/mng/scanxsd/" method="post" > {% csrf_token %}
        {% trans "Language" %}: <select name="lang" onchange="this.form.submit()">
		    {% for l in languages %}
		    <option value="{{ l.value }}" {% if l.value == sel_lang %} selected="selected" {% endif %} > {% trans l.name %} </option>
		    {% endfor %}
		    </select>
      </form>
      {% endif %}
      <form action="/mng/scanxsd/" method="post" enctype="multipart/form-data" accept-charset="utf-8"> {% csrf_token %}
		<input type="hidden" name="sel_lang" value="{{sel_lang}}" />
		{% trans "File" %}:
        <input type="file" name="xsd" />
        <input type="submit" name="action" value="{% trans "Import xsd data" %}" />
      </form>
    </td>
</tr>
</TABLE>

{% if predicates %}
<h2>{% trans "Predicates" %}</h2>
<TABLE width="100%" id="transactions">
    {% for r in predicates %}
    <tr>
      {% for c in r %}
        <td>{{c}}</td>
      {% endfor %}
    </tr>
    {% endfor %}
</TABLE>
{% endif %}

{% if status != "" %}
<TABLE>
  <tr>    
    <td>{% trans status %} {% if errmsg != "" %} : {% trans errmsg %} {% endif %}
    </td>
  </tr>
</TABLE>
{% endif %}

{% endblock %}
